package com.cmii.sjw.department.control.jsc.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cmii.sjw.department.control.jsc.model.entity.Menu;
import com.cmii.sjw.department.control.jsc.model.entity.Role;
import com.cmii.sjw.department.control.jsc.model.entity.UserRole;

import java.util.List;

/**
 * @Author jfh
 * @Date 2025-04-08 周二 11:17
 * @Version 1.0
 */
public interface UserRoleService {


    List<Role> getRolesByUserId(Long userId);

    List<Menu> getMenusByUserId(Long userId);

    Long count(LambdaQueryWrapper<UserRole> eq);

    void remove(LambdaQueryWrapper<UserRole> eq);

    boolean saveBatch(List<UserRole> userRoles);
}
